﻿#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QCloseEvent>
#include "tcpfilepost.h"
#include "tcpfileget.h"
#include "udpmespost.h"
#include "udpmesget.h"
#include "setupwindow.h"
#include "textbrowsercon.h"
#include "userdatacon.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    SetUpWindow *m_setupwindow;

    class tcpFilePost *m_tcpfilePOST;
    class tcpFileGet *m_tcpfileGET;
    class udpMesPost *m_udpmesPOST;
    class udpMesGet *m_udpmesGET;
    class textBrowserCon *m_textbrowCON;
    class userDataCon m_userdataCON;

    QString m_sendfilename;

    void closeEvent(QCloseEvent *event);

public slots:
    void sendFileProgress(int);
    void sendFileError(QString);
    void getFileProgress(int);
    void getFileError(QString);
    void getMesProgress(QString);
    void setupWinClose(QString);


private slots:
    void on_pb_sendfile_clicked();
    void on_pb_send_clicked();
    void on_pb_setup_clicked();

private:
    Ui::MainWindow *ui;


};
#endif // MAINWINDOW_H
